package com.jDesireShop.constant;

import org.springframework.context.ApplicationContext;

public class Constant {
	
	private static Constant constant  = new Constant();
	private ApplicationContext applicationContext;
	
	
	private Constant(){
		
	}
	
	public static Constant getInstance(){
		return constant;
	}


	public ApplicationContext getApplicationContext() {
		return applicationContext;
	}


	public void setApplicationContext(ApplicationContext applicationContext) {
		this.applicationContext = applicationContext;
	}
	
	public Object getBean(String beanName){
		return this.getApplicationContext().getBean(beanName);
	}

}
